import Vue from 'vue';
import VueRouter, { RouteConfig } from 'vue-router';
import Main from '@/views/Main.vue';
import Test from '../views/Test.vue';
import BI大屏 from '@/views/BI大屏.vue';
import Wechat from '../views/Wechat.vue';
import Page from '../views/Page.vue';
import Login from '@/views/Login.vue';
import Cesium from '@/views/Cesium/cesium.vue';
import 字典维护 from '@/views/民航实时监控系统/字典维护.vue';
import ssjs from '@/views/民航实时监控系统/ssjs.vue'
import hist from '@/views/民航实时监控系统/history.vue'
Vue.use(VueRouter);

const routes: Array<RouteConfig> = [
  {
    path: '/',
    redirect: '/main' // 添加根路径重定向规则
  },{
    path:'/page',
    name:'Page',
    component:Page
  },
  {
  path:'/main',
  name:'Main',
  component:Main
},{
  path:'/test',
  name:'Test',
  component:Test
},{
  path:'/dapin',
  name:'Dapin',
  component:BI大屏
},{
  path:'/wechat',
  name:'Wechat',
  component:Wechat
},{
  path:'/login',
  name:'Login',
  component:Login
},{
  path:'/pagination',
  name:'Pagination',
  component:字典维护
},{
  path:'/cesium1',
  name:'Cesium',
  component:Cesium
},{
  path:'/ssjs',
  name:'实时监视',
  component:ssjs
},{
  path:'/hist',
  name:'历史回放',
  component:hist
}];

const router = new VueRouter({
  mode: 'history',
    routes
});

export default router;